import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

export const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        meta:{
            name:"首页",
            index:"/"
        },
        // component: () => import('@/views/home/home.vue'),
        component: () => import('@/views/home/home.vue')
    },
    {
        path:"/accountMsg",
        meta:{ name:"我的账号", index:"/accountMsg"},
        component: () => import('@/views/user/userMsg.vue')
    },
    {
        path:"/schoolMsg",
        meta:{ name:"我的学校", index:"/schoolMsg"},
        component: () => import('@/views/user/schoolMsg.vue')
    },
    {
        path:"/normalStudent",
        meta:{ name:"信息正常", index:"/normalStudent"},
        component: () => import('@/views/allStudent/normal.vue')
    },
    
]

const router = createRouter({
    history:createWebHashHistory(),
    routes
})

export default router